{// 加载头部公共文件 }
<include file="Public:header" />
<style>
    .getpp h1 {
        background-image: url("images/bg_member_getPassword.jpg") !important;
    }
    .getpp h2 {
        border-bottom: 1px dotted #CCCCCC;
        color: #003399;
        font-size: 14px;
        font-weight: bold;
        height: 30px;
        line-height: 30px;
        margin: auto;
        text-align: left;
        width: 600px;
    }
    .getpp .tabpsw {
        margin: 10px auto;
        text-align: center;
        width: 600px;
    }
    .getpp .tabpsw * {
        vertical-align: middle;
    }
    .tabpsw td {
        padding: 5px;
    }
    table.tabpsw th {
        background: none repeat scroll 0 0 #FFFFFF;
        color: #003399;
        font-weight: normal;
        text-align: right;
    }
    table.tabpsw td {
        background: none repeat scroll 0 0 #FFFFFF;
        text-align: left;
    }
    .tdcenter {
        text-align: center !important;
    }
    .inputtext {
        -moz-border-bottom-colors: none;
        -moz-border-left-colors: none;
        -moz-border-right-colors: none;
        -moz-border-top-colors: none;
        border-color: #666666 #CCCCCC #CCCCCC #666666;
        border-image: none;
        border-right: 1px solid #CCCCCC;
        border-style: solid;
        border-width: 1px;
        height: 20px;
        line-height: 20px;
        vertical-align: middle;
    }
    .inputbutton {
        overflow: visible;
        padding: 0 14px 0 13px;
    }
</style>
<!--主体内容1-->
<div class="grid_16" style="margin-top:20px; margin-bottom:20px">
    <div class="" id="container">
        <div class="mode-a">
            <!-- mode-a-sid -->
            <div class="mode-a-sid">
                <dl id="LastestUpdate" class="box">
                    <dt style="background: url('/App/Modules/Home/Tpl/Public/images/bg-tit-long.png') no-repeat scroll 0 0 transparent;"><span>文章资讯</span></dt>
                    <dd>
                        <ul class="txtList">
                            <volist name="category" id="category">
                                <li><img src="../Public/images/ontop8.gif"><a href="__URL__/read/id/{$category.id}" title="{$category.title}">{$category.title|msubstr=0,15}</a></li>
                            </volist>
                        </ul>
                    </dd>
                </dl>
                <a href="__URL__/archive"><img src="../Public/images/dl.jpg" width="222px" /></a>
                <a href="__URL__/message"><img src="../Public/images/mes.jpg" width="222px" /></a>
                <a href="__URL__/signin"><img src="../Public/images/members.jpg" width="222px" /></a>
                <!-- end side -->
            </div>
            <!-- mode-a-main -->
            <div class="mode-a-main">

                <div class="articleList">

                    <div class="single getpp">
                        <form onsubmit="javascript:return validates();" action="__URL__/domessage" method="post" name="form1">
                            <h2>请输入您的留言内容</h2>
                            <table class="tabpsw">
                                <tbody><tr>
                                        <th>主题</th>
                                        <td><input type="text" class="inputtext" id="TxtTitle" name="TxtTitle"></td>
                                    </tr>
                                    <!--                                    <tr>
                                                                            <th>联系邮箱</th>
                                                                            <td><input type="text" class="inputtext" id="TxtEmail" name="TxtEmail"></td>
                                                                        </tr>-->
                                    <tr>
                                        <th>联系电话</th>
                                        <td><input type="text" class="inputtext" id="TxtPhone" name="TxtPhone"></td>
                                    </tr>
                                    <tr>
                                        <th>详细</th>
                                        <td>
                                            <textarea name="TxtContent" id="TxtContent" cols="35" rows="5"></textarea>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td></td>
                                        <td><input type="submit" class="inputbutton" id="BtnStep2" value="提交"></td>
                                    </tr>
                                </tbody></table>
                        </form>
                    </div>

                    <div class="single getpp">
                        <table class="tabpsw">
                            <tbody>
                                <tr>
                                    <td>主题</td><td>留言时间</td>
                                </tr>
                            <volist name="data" id="data">
                                <tr>
                                    <td>{$data.title}</td><td>{$data.createat|toDate='Y-m-d'}</td>
                                </tr>
                            </volist>
                            </tbody>
                        </table>
                    </div>

                </div>
            </div>
        </div>
    </div>
</div>
<div class="clear"></div>
<!--主体内容1-->
<script>
    function validates(){
        var TxtTitle = document.getElementById('TxtTitle').value;
        var TxtEmail = document.getElementById('TxtEmail').value;
        var TxtPhone = document.getElementById('TxtPhone').value;
        var TxtContent = document.getElementById('TxtContent').value;
        var reg = /^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+((\.[a-zA-Z0-9_-]{2,3}){1,2})$/;
        //        if(!reg.test(TxtEmail)){
        //            alert('邮箱信息填写不合法,请检查重填!')
        //            return false;
        //        }
        if(TxtTitle == '' || TxtEmail == '' || TxtPhone == '' || TxtPhone.length < 6 || 
            TxtContent == ''){
            alert('信息填写不完整,请检查重填!')
            return false;
        }
    }
</script>
{// 加载底部公共文件 }
<include file="Public:footer" />